package com.ccxe.manage.web;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class DefaultServlet extends HttpServlet {

	/**
	 * 临时Servlet
	 */
	private static final long serialVersionUID = 4032542306241442539L;


	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		doPost(req, resp);
	}

	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		req.getSession().setAttribute("userName", req.getParameter("userName"));
		req.getRequestDispatcher("/jsp/index.jsp").forward(req, resp);
	}

	
}
